class UserInfoEntity {
	int id;
	int identity;
	String userId;
	String idNumber;
	int familyId;
	String phone;
	String currentGold;
	int keyNumbers;
	int status;
	int type;
	int privacy;
	String appToken;
	int tokenTime;
	String wechatUnionid;
	String qqUnionid;
	String createdAt;
	String updatedAt;
	String joinFamily;
	int contribution;
	int winNumbers;
	String notWon;
	String title;
	PhotoWall photoWall;
	int userId1;
	String secondPassword;
	String avatar;
	String signature;
	int sex;
	int age;
	String interest;
	String city;
	String nickname;
	String wechat;
	int experience;
	int level;
	int rechargeAmount;
	int sendAmount;
	String birthday;
	int fans;
	int attentions;
	int roomId;
	int noticeRoom;
	int noticeStatus;

	UserInfoEntity(
			{this.id,
				this.identity,
				this.userId,
				this.idNumber,
				this.familyId,
				this.phone,
				this.currentGold,
				this.keyNumbers,
				this.status,
				this.type,
				this.appToken,
				this.tokenTime,
				this.wechatUnionid,
				this.qqUnionid,
				this.createdAt,
				this.updatedAt,
				this.joinFamily,
				this.contribution,
				this.winNumbers,
				this.notWon,
				this.title,
				this.photoWall,
				this.userId1,
				this.secondPassword,
				this.avatar,
				this.signature,
				this.sex,
				this.age,
				this.interest,
				this.city,
				this.nickname,
				this.wechat,
				this.privacy,
				this.experience,
				this.level,
				this.rechargeAmount,
				this.sendAmount,
				this.birthday,
				this.fans,
				this.attentions,
				this.noticeRoom,
				this.noticeStatus,
				this.roomId});

	UserInfoEntity.fromJson(Map<String, dynamic> json) {
		id = json['id'];
		identity = json['identity'];
		userId = json['userId'];
		idNumber = json['id_number'];
		familyId = json['family_id'];
		phone = json['phone'];
		currentGold = json['current_gold'];
		keyNumbers = json['key_numbers'];
		status = json['status'];
		type = json['type'];
		appToken = json['app_token'];
		tokenTime = json['token_time'];
		wechatUnionid = json['wechat_unionid'];
		qqUnionid = json['qq_unionid'];
		createdAt = json['created_at'];
		updatedAt = json['updated_at'];
		joinFamily = json['join_family'];
		contribution = json['contribution'];
		winNumbers = json['win_numbers'];
		notWon = json['not_won'];
		privacy = json['privacy'];
		title = json['title'];
		photoWall = json['photo_wall'] is List  ? null : json['photo_wall'] != null
				? new PhotoWall.fromJson(json['photo_wall'])
				: null;
		userId1 = json['user_id'];
		secondPassword = json['second_password'];
		avatar = json['avatar'];
		signature = json['signature'];
		sex = json['sex'];
		age = json['age'];
		interest = json['interest'];
		city = json['city'];
		nickname = json['nickname'];
		wechat = json['wechat'];
		experience = json['experience'];
		level = json['level'];
		rechargeAmount = json['recharge_amount'];
		sendAmount = json['send_amount'];
		birthday = json['birthday'];
		fans = json['fans'];
		attentions = json['attentions'];
		roomId = json['room_id'];
		noticeRoom = json['notice_room'];
		noticeStatus = json['notice_status'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = this.id;
		data['identity'] = this.identity;
		data['userId'] = this.userId;
		data['id_number'] = this.idNumber;
		data['family_id'] = this.familyId;
		data['phone'] = this.phone;
		data['current_gold'] = this.currentGold;
		data['key_numbers'] = this.keyNumbers;
		data['status'] = this.status;
		data['type'] = this.type;
		data['privacy'] = this.privacy;
		data['app_token'] = this.appToken;
		data['token_time'] = this.tokenTime;
		data['wechat_unionid'] = this.wechatUnionid;
		data['qq_unionid'] = this.qqUnionid;
		data['created_at'] = this.createdAt;
		data['updated_at'] = this.updatedAt;
		data['join_family'] = this.joinFamily;
		data['contribution'] = this.contribution;
		data['win_numbers'] = this.winNumbers;
		data['not_won'] = this.notWon;
		data['title'] = this.title;
		if (this.photoWall != null) {
			data['photo_wall'] = this.photoWall.toJson();
		}
		data['user_id'] = this.userId1;
		data['second_password'] = this.secondPassword;
		data['avatar'] = this.avatar;
		data['signature'] = this.signature;
		data['sex'] = this.sex;
		data['age'] = this.age;
		data['interest'] = this.interest;
		data['city'] = this.city;
		data['nickname'] = this.nickname;
		data['wechat'] = this.wechat;
		data['experience'] = this.experience;
		data['level'] = this.level;
		data['recharge_amount'] = this.rechargeAmount;
		data['send_amount'] = this.sendAmount;
		data['birthday'] = this.birthday;
		data['fans'] = this.fans;
		data['attentions'] = this.attentions;
		data['room_id'] = this.roomId;
		data['notice_room'] = this.noticeRoom;
		data['notice_status'] = this.noticeStatus;
		return data;
	}
}

class PhotoWall {
	String photo1;
	String photo2;
	String photo3;
	String photo4;
	String photo5;

	PhotoWall({this.photo1,this.photo2,this.photo3,this.photo4,this.photo5});

	PhotoWall.fromJson(Map<String, dynamic> json) {
		photo1 = json['photo1'];
		photo2 = json['photo2'];
		photo3 = json['photo3'];
		photo4 = json['photo4'];
		photo5 = json['photo5'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['photo1'] = this.photo1;
		data['photo2'] = this.photo2;
		data['photo3'] = this.photo3;
		data['photo4'] = this.photo4;
		data['photo5'] = this.photo5;
		return data;
	}
}